package com.csy.ocmis.service.impl;

import com.csy.ocmis.entity.Pharmacy;
import com.csy.ocmis.mapper.PharmacyMapper;
import com.csy.ocmis.service.IPharmacyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author csy
 * @since 2020-11-30
 */
@Service
public class PharmacyServiceImpl extends ServiceImpl<PharmacyMapper, Pharmacy> implements IPharmacyService {

    @Autowired
    private PharmacyMapper pharmacyMapper;
    @Override
    public List<Pharmacy> selpharm(Pharmacy cPharmacy) {
        return pharmacyMapper.selpharm(cPharmacy);
    }

    @Override
    public Integer updatePha(Pharmacy cPharmacy) {
        return pharmacyMapper.updatePha(cPharmacy);
    }

    @Override
    public void adddrunum(Pharmacy pharmacy) {
        pharmacyMapper.adddrunum(pharmacy);
    }
}
